import request from "@/utils/request";

// 查询GPS设备实时告警列表
export function listGpsRealtime(query) {
  return request({
    url: "/alarm/gpsRealtime/list",
    method: "get",
    params: query
  });
}

// 查询GPS设备实时告警详细
export function getGpsRealtime(alarmId) {
  return request({
    url: "/alarm/gpsRealtime/" + alarmId,
    method: "get"
  });
}

// 新增GPS设备实时告警
export function addGpsRealtime(data) {
  return request({
    url: "/alarm/gpsRealtime",
    method: "post",
    data: data
  });
}

// 修改GPS设备实时告警
export function updateGpsRealtime(data) {
  return request({
    url: "/alarm/gpsRealtime",
    method: "put",
    data: data
  });
}

// 删除GPS设备实时告警
export function delGpsRealtime(alarmId) {
  return request({
    url: "/alarm/gpsRealtime/" + alarmId,
    method: "delete"
  });
}

// 导出GPS设备实时告警
export function exportGpsRealtime(query) {
  return request({
    url: "/alarm/gpsRealtime/export",
    method: "get",
    params: query
  });
}
